﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="EditCard.aspx.cs"
    Inherits="MembershipCard_EditCard" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="<%= ResolveUrl("~/jquery-easyui-1.2.6/themes/"+Skin+"/easyui.css") %>"
        rel="stylesheet" type="text/css" />
    <link href="../jquery-easyui-1.2.6/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../jquery-easyui-1.2.6/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../jquery-easyui-1.2.6/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../jquery-easyui-1.2.6/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <script src="../Content/js/sysEasyUI.js" type="text/javascript"></script>
    <link href="kindeditor/themes/default/default.css" rel="stylesheet" type="text/css" />
    <link href="kindeditor/plugins/code/prettify.css" rel="stylesheet" type="text/css" />
    <script src="kindeditor/kindeditor.js" type="text/javascript"></script>
    <script src="kindeditor/lang/en.js" type="text/javascript"></script>
    <script src="kindeditor/kindeditor-min.js" type="text/javascript"></script>
    <script type="text/javascript">
        KindEditor.ready(function (K) {
            var editor1 = K.create('#content1', {
                cssPath: '../../kindeditor/plugins/code/prettify.css',
                uploadJson: '../../kindeditor/upload_json.ashx',
                fileManagerJson: '../../kindeditor/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                }
            });
            //  prettyPrint();
        });
    </script>
    <style type="text/css">
        body
        {
            font-size: 12px;
        }
        .style1
        {
            width: 100%;
            border-collapse: collapse;
            border: 1px solid #E2EEF3;
        }
        .style1 tr td
        {
            border: 1px solid #E2EEF3;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("#btnOK").click(btnOK);
        });
        function btnOK() {
            //var aa = $("#Button1 ");
            $("#Button1 ").click();
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style="">
        <table cellpadding="0" class="style1">
            <tr>
                <td>
                    优惠类型
                </td>
                <td>
                    <asp:DropDownList ID="ddlType" Width="500px" runat="server">
                        <asp:ListItem Value="1">特权</asp:ListItem>
                        <asp:ListItem Value="2">券</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    优惠标题
                </td>
                <td>
                    <asp:TextBox ID="txtTitle" Width="490px" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    城市
                </td>
                <td>
                    <asp:DropDownList ID="ddlcity" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlcity_SelectedIndexChanged">
                        <asp:ListItem Value="-1">请选择城市</asp:ListItem>
                        <asp:ListItem Value="1">上海</asp:ListItem>
                        <asp:ListItem Value="2">北京</asp:ListItem>
                        <asp:ListItem Value="3">苏州</asp:ListItem>
                        <asp:ListItem Value="4">常州</asp:ListItem>
                        <asp:ListItem Value="5">河南</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    店铺
                </td>
                <td>
                    <asp:DropDownList ID="ddlStore" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    详细说明
                </td>
                <td>
                    <textarea id="content1" cols="100" rows="8" style="width: 500px; height: 250px; visibility: hidden;"
                        runat="server"></textarea>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <a href="#" class="easyui-linkbutton" iconcls="icon-save" id="btnOK">保存</a>
                    <asp:Button ID="Button1" runat="server" Text="保存" Style="display: none;" OnClick="Button1_Click"
                        OnClientClick="return CheckV()" />
                    <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" id="btnCancel" onclick="closeDialog()">
                        取消</a>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
